package com.maimao.api.mall.goods;

import com.maimao.core.model.resp.PageResult;
import com.maimao.core.model.resp.Result;
import com.maimao.model.common.StatusInput;
import com.maimao.model.goods.Brand;
import com.maimao.model.goods.Category;
import com.maimao.model.goods.input.BrandSearchInput;
import com.maimao.model.goods.input.CateSearch;
import com.maimao.model.goods.input.CategoryAddBean;
import com.maimao.model.user.sys.Resources;
import com.maimao.model.user.sys.dto.DelDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

/**
 * @author MaoLin Wang
 * @date 2020/12/8 4:43 下午
 */
@Api(value = "分类接口")
@RequestMapping("/goods/cate")
public interface CateApi {

    /**
     * 后台分类管理查询过滤
     */
    @ApiOperation("后台分类管理查询过滤")
    Result<?> msSearch(Integer page, Integer size, CateSearch cateSearch);
    /**
     * 分类树
     */
    @ApiOperation("资源树形数据")
    Result<?> treeData();


    @ApiOperation("根据关键字搜搜id列表")
    Result<?> searchIdsByKey(String key);

    @ApiOperation("根据id集合查询分类名集合")
    Result<?> selectNamesByIds(List<Integer> ids);

    @ApiOperation("批量查询分类")
    Result<?> selectByIds(List<Integer> ids);

    @ApiOperation("添加分类")
    Result<?>addCate(CategoryAddBean categoryAddBean,BindingResult bindingResult);

    @ApiOperation("修改分类")
    Result<?>updateCate(CategoryAddBean categoryAddBean,BindingResult bindingResult);

    @ApiOperation("暂停分类")
    Result<?>stop(Integer id);

    @ApiOperation("开启分类")
    Result<?>start(Integer id);
}
